package com.ruoyi.system.controller;

import com.alibaba.fastjson2.JSONObject;
import com.ruoyi.common.annotation.Anonymous;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.common.core.domain.model.LoginUser;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.OrderCodeUtils;
import com.ruoyi.common.utils.SecurityUtils;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.system.domain.MemberSetMenu;
import com.ruoyi.system.domain.SysComboMeal;
import com.ruoyi.system.domain.SysMember;
import com.ruoyi.system.mapper.SysComboMealMapper;
import com.ruoyi.system.mapper.SysMemberMapper;
import com.ruoyi.system.service.IMemberSetMenuService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * 会员套餐订单Controller
 * 
 * @author ruoyi
 * @date 2025-04-21
 */
@Api("会员套餐订单")
@RestController
@Anonymous
@RequestMapping("/system/getMenu")
public class MemberGetMenuController extends BaseController
{
    @Autowired
    private IMemberSetMenuService memberSetMenuService;
    @Autowired
    private SysMemberMapper sysMemberMapper;
    @Autowired
    private SysComboMealMapper sysComboMealMapper;

    /**
     * 查询会员配置
     */
    @ApiOperation("查询会员配置")
    @GetMapping("/info")
    public AjaxResult list(MemberSetMenu memberSetMenu)
    {
        List<SysComboMeal> sysComboMeals = sysComboMealMapper.selectSysComboMealList(new SysComboMeal());
        return AjaxResult.success(sysComboMeals);
    }


}
